<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<%
request.setCharacterEncoding("utf-8");
String name=request.getParameter("id");
String pass=request.getParameter("pass");
if(name.startsWith("aa")&&pass.equals("123456")){
	session.setAttribute("isAdm", name);
	request.getRequestDispatcher("helloPage.jsp").forward(request, response); 
	return;
}
	response.sendRedirect("login.jsp");
%>

</body>
</html>